<?php
namespace app\controller;
use Exception;
use think\facade\Db;
use think\facade\Request;

class Test{
    public function test_log_other(){
        $r = log_other($log='log文本1');
        if ($r) return returnJson(msg: '成功');
        else return returnJson(msg: '失败');
}
    public function test_log_action(){
        $r = log_action($method='测试方法1',$state='成功');
        if ($r) return returnJson(msg:'成功');
        return returnJson(msg: '失败');
    }

}
